//
//  DataBaseHandler.h
//  UI21_SQLite
//
//  Created by dllo on 16/1/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@class ModelForListen;

@interface DataBaseHandler : NSObject

+ (instancetype)shareDataBaseHandler;
- (void)open;
- (void)createTable;
- (void)insertModel:(ModelForListen *) model;
- (void)updataModel:(ModelForListen *)model ForNumber:(NSInteger)number;
- (void)deleteWithTitle:(NSString *)title;


- (void)deleteWithModel:(ModelForListen *)model;
- (NSArray *)selectForTitle:(NSString *)title;
- (NSArray *)selectForModel;
- (void)dropTable;
- (void)closeDB;

@end
